<?php
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT", time() - 60 * 60 * 168);
include('config.php');
include('ad.php');

$c = $contents;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
    <title><?=$c['title']?> <?=$c['title_lang']?> <?=$c['keywords']?> - UDNMovies</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="description" content="<?=$c['title']?> <?=$c['title_lang']?> <?=$c['keywords']?> <?=$c['description']?>"/>
    <meta name="keywords" content="<?=$c['title']?> <?=$c['title_lang']?> <?=$c['keywords']?>"/>

    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/jquery.lightbox-0.5.css" />
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/navbar.css"/>
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/udn.css"/>
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/ui-darkness/jquery-ui-1.10.3.custom.min.css"/>
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/jquery.mCustomScrollbar.css" />

    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.tablesorter.min.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/download.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.ddslick.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/udnutil.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/youtube.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.lightbox-0.5.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.lazyload.min.js" ></script>

    <script type="text/javascript">
        $(document).ready(function() {

            $("img.lazy").lazyload();

            $("#bookmarkme").click(function() {
                if (window.sidebar) { // Mozilla Firefox Bookmark
                    window.sidebar.addPanel(location.href,document.title,"");
                }
                else if(window.external) { // IE Favorite
                    window.external.AddFavorite(location.href,document.title);
                }
                else if(window.opera && window.print) { // Opera Hotlist
                    this.title=document.title;
                    return true;
                }
            });
        });
    </script>

    <?=ad::get_analytics()?>


</head>
<body>
<?if($crawler){?>
<div itemprop="" itemtype="">
    <h1 itemprop="title"><?=$c['title']?> <?=$c['keywords']?></h1>
    <p itemprop="description"><?=$c['description']?></p>
</div>
<?}?>
<div id="udn_container">
    <div  id="udn_movie2"></div>
        <div style="float:left;">
            <a title="UDNMovies Home" href="transform"><img src="http://<?=$res_server?>/res/img/udnm3.jpg"/></a>
        </div>
        <div style="float:left;">
            <!-- BEGIN Dark navigation bar -->
            <nav class="dark">
                <ul class="clear" style="text-align:center">
                    <li><a href='transform?udnsearch=1&title_type=tv_series'><img src="http://icons.iconarchive.com/icons/lajonard/movie-folder/48/Series-icon.png"/><br /><?=lang::get('tv-series')?></a></li>
                    <li><a href='transform?udnsearch=1&genres=action'><img src="http://icons.iconarchive.com/icons/lajonard/movie-folder/48/Action-icon.png"/><br /><?=lang::get('Action')?></a></li>
                    <li><a href="#"><img src="http://icons.iconarchive.com/icons/lajonard/movie-folder/48/Other-icon.png"/><br /><?=lang::get('genres')?></a>
                        <ul>
						    <li><a href='transform?udnsearch=1&genres=animation'><?=lang::get('Animation')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=drama'><?=lang::get('Drama')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=adventure'><?=lang::get('Adventure')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=biography'><?=lang::get('Biography')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=comedy'><?=lang::get('Comedy')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=crime'><?=lang::get('Crime')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=documentary'><?=lang::get('Documentary')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=family'><?=lang::get('Family')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=fantasy'><?=lang::get('Fantasy')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=film_noir'><?=lang::get('Film-Noir')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=game_show'><?=lang::get('Game-Show')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=history'><?=lang::get('History')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=horror'><?=lang::get('Horror')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=music'><?=lang::get('Music')?></a></li>
                        </ul>
                    </li>
                    <li><a href="#"><img src="http://icons.iconarchive.com/icons/lajonard/movie-folder/48/Other-icon.png"/><br /><?=lang::get('genres')?></a>
                        <ul>
                            <li><a href='transform?udnsearch=1&genres=musical'><?=lang::get('Musical')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=mystery'><?=lang::get('Mystery')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=news'><?=lang::get('News')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=reality_tv'><?=lang::get('Reality-TV')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=romance'><?=lang::get('Romance')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=sci_fi'><?=lang::get('Sci-Fi')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=sport'><?=lang::get('Sport')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=talk_show'><?=lang::get('Talk-Show')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=thriller'><?=lang::get('Thriller')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=war'><?=lang::get('War')?></a></li>
                            <li><a href='transform?udnsearch=1&genres=western'><?=lang::get('Western')?></a></li>
                        </ul>
                    </li>
                    <li style="width:235px;">
                        <a target="_blank" href="http://UDNMovies.OurToolbar.com/"><img style="vertical-align: text-top" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-bookmark-toolbar-icon.png" /> Install UDNMovies Toolbar</a>
                        <form id="form" name="form" method="get" style="margin-top:6px; margin-left: 10px;">
                                <input type="hidden" name="udnsearch" value="1"/>
                                <input name="title" id="search" type="text" style="width:200px" class="waterMarkInput" title="<?=lang::get('search')?>" />
                        </form>
                        <script type="text/javascript">
                            $('.waterMarkInput').focus(function() {
                                if ($(this).val()==$(this).attr("title")) { $(this).val(""); }
                            }).blur(function() {
                                        if ($(this).val()=="") { $(this).val($(this).attr("title")); }
                                    });
                        </script>
                    </li>
                    <li>
                    <a id="bookmarkme" href="#" rel="sidebar" content="<?=$c['title']?> - UDNMovies">
                        <img src="http://icons.iconarchive.com/icons/indeepop/shiny/16/Star-icon.png" />
                        <br/><br/><?=lang::get('favorites')?>
                    </a>

                </li>
                </ul>
            </nav>
            <!-- END Dark navigation bar -->
                </div>
        <div class="clear"></div>

        <?include($template);?>

</div>
</body>
</html>